package top.songxs.gmall.feign.ware;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "service-ware",url = "http://localhost:9001")
public interface WareManageFeignClient {

    @GetMapping("/hasStock")
    public ResponseEntity<String> hasStock(@RequestParam Map<String,String> hashMap);
}
